package org.com.coolfish.common.database.service;

import java.util.List;

import org.com.coolfish.common.database.entity.KuyuAgent;
import org.com.coolfish.common.database.entity.KuyuAgentAccount;
import org.com.coolfish.common.database.repository.KuyuAgentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class KuyuAgentService {
	@Autowired
	private KuyuAgentRepository repository;
	
	@Transactional
    public void updateAmount(Double amount,Integer aid){
    	repository.updateAmount(amount, aid);
    }
	
	@Transactional
    public KuyuAgent queryAmount(Integer aid){
    	return repository.queryAmount( aid);
    }

	
}
